var appkey = "403DB206089258FBB529B861AB768D59";

$(document).ready(function() {
    $("#pay").click(function() {
	$.get("/api/users/login/guest?appkey=" + appkey,
	      function(data, status) {
		  alert(status);
		  alert(JSON.stringify(data));
	      });
    });
});
/*
var btn = document.querySelector('#J_btn');
btn.addEventListener('click', function(){
    ap.tradePay({
	orderStr: 'timestamp=2016-12-27%2018%3A00%3A00&method=alipay.trade.app.pay&app_id=2014073000007292......'
    }, function(res){
	ap.alert(res.resultCode);
    });
});
*/
